package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Lend;
import com.atguigu.srb.core.pojo.entity.LendItem;
import com.atguigu.srb.core.pojo.entity.LendItemReturn;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的出借回款记录表 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-03-25
 */
public interface LendItemReturnService extends IService<LendItemReturn> {
    public List<LendItemReturn> saveLendItemReturns(Lend lend, List<LendItem> lendItems, BigDecimal yearRate, Integer period,
                                                    Integer returnMethod, Map<Integer, Long> lendReturnPeriodId);
}
